#ifndef INVENTOrY_H
#define INVENTORY_H

//include the header files needed
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
//defin a class called product
class product
{
private://declare the variables
	int	nProNum, nQuantity;
	string cname;// c++ string
	float nPrice, nDiscount;
	//private members
public://declare all the functions
	int getProNum ();//get the product number
	int getQuantity ();//get the quantity
	void getName ();//get the product name
	float getPrice ();//get the ptoduct price
	float getDiscount ();//get the discount
	void askDetail ( int n );//ask the detail
	void setProNum ();//set the product number
	void setDetail ();//set the product detail
	void fInput ( ifstream& instream );//file input
	void fOutput ();//file output

};
//a class called customer
class customer
{
private:
	product *oProduct;
	int nItem;
	//private members
public://all the functions needed
	customer ( void );
	customer ( int n );
	customer ( const customer& cusObject );//copy constructor

	int getItem ();
	void setProduct ();
	void addProduct ();
	void deleteProduct ();
	void showProduct ();
	void readreceipt ();
	void printreceipt ();
	float calTotal ();
	int calTotal(int);//overloaded function
	customer& operator = ( const customer& rightSide );//overloaded operator
	~customer ();//destructor
};

#endif
